import tenantCenter from './routerList/tenantCenter.config';
import knowledgeCenter from './routerList/knowledgeCenter.config';
import abilityCenter from './routerList/abilityCenter.config';
import dataCenter from './routerList/dataCenter.config';
import securityCenter from './routerList/securityCenter.config';
import appCenter from './routerList/appCenter.config';
import accountCenter from './routerList/accountCenter.config';
import workOrderCenter from './routerList/workOrderCenter.config';

export default [
	// user
	{
		path: "/user",
		component: "../layouts/UserLayout",
		routes: [
			{
				path: "/user",
				redirect: "/user/login",
			},
			{
				path: "/user/resetPassword",
				component: './User/resetPassword',
			},
			{
				path: "/user/login",
				name: "login",
				component: "./User/Login",
			},
			{
				path: "/user/register",
				name: "register",
				component: "./User/Register",
			},
			{
				path: "/user/register-result",
				name: "register.result",
				component: "./User/RegisterResult",
			},
			{
				path: "/user/userSelect",
				name: "userSelect",
				component: "./User/MultiUserSelection",
			},
      {
				path: "/user/docParsing",
				name: "docParsing",
				component: "./User/docParsing",
			},
			{
				component: "404",
			},
		],
	},
	{
		path: "/template",
		component: "./Carousel/carousel",
		target: "_blank",
	},
	{
		path: "/img",
		component: "./Carousel/imga",
		target: "_blank",
	},
	{
		path: "/imgTwo",
		component: "./Carousel/imgb",
		target: "_blank",
	},
	{
		path: "/imgThree",
		component: "./Carousel/imgc",
		target: "_blank",
	},
	{
		path: "/home",
		name: "",
		component: "./User/Home",
	},
	{
		path: "/homeType",
		name: "",
		component: "./ChatGPT/custom/index",
	},
	{
		path: "/search",
		name: "",
		component: "./Search/search",
	},
	{
		path: "/searchResult",
		name: "",
		component: "./Search/searchResult",
	},


	{
		path: "/",
		component: "../layouts/BasicLayout",
		Routes: ["src/pages/Authorized"],
		routes: [
			// home
			{
				path: "/",
				// redirect: "/index",
				component: "./RouteRedirect",
			},
      //应用渠道
			...appCenter,
			//租户中心
			...tenantCenter,
			//知识中心
			...knowledgeCenter,
			//能力中心
			...abilityCenter,
			//数据中心
			...dataCenter,
			//安全审计
			...securityCenter,
			
			//用户管理
			...accountCenter,
      //工单中心
      ...workOrderCenter,



			// {
			// 	path: "/interactCenter",
			// 	name: "interactCenter",
			// 	icon: "interactCenter.png",
			// 	component: "./RobotManagement/robotDefault",
			// 	authority: ["interactCenter"],
			// 	hideInMenu: false,
			// },

			// {
			// 	path: "/manageMent",
			// 	name: "manageMent",
			// 	component: "./Account/manageMent/Index",
			// 	authority: ["manageMent"],
			// 	icon: "manageMent.png",
			// },
			// {
			// 	path: "/roleManagement",
			// 	name: "roleManagement",
			// 	component: "./Account/roleManagement/Index",
			// 	hideInMenu: true,
			// 	authority: ["roleManagement"],
			// 	icon: "book",
			// },
			{
				path: "/blankPage",
				icon: "notice",
				component: "./blankPage",
				hideInMenu: true,
			},

			// {
			// 	name: "account",
			// 	icon: "setting",
			// 	path: "/account",
			// 	hideInMenu: true,
			// 	authority: [
			// 		"account",
			// 		"robotSetup",
			// 		"accessSettings",
			// 		"settings",
			// 		"authManage",
			// 		"apiAccess",
			// 	],
			// 	routes: [
			// 		{
			// 			path: "/account/robotSetup",
			// 			name: "robotSetup",
			// 			component: "./Account/robotSetup/Index",
			// 			// authority: ['robotSetup'],
			// 			hideInMenu: true,
			// 		},
			// 		{
			// 			path: "/account/accessSettings",
			// 			name: "accessSettings",
			// 			component: "./Account/accessSettings/Index",
			// 			authority: ["accessSettings"],
			// 			hideInMenu: true,
			// 		},
			// 		{
			// 			path: "/account/robotManage",
			// 			name: "robotManage",
			// 			component: "./Account/robotManage/Index",
			// 			hideInMenu: true,
			// 			// authority: ['robotManage'],
			// 		},
			// 		{
			// 			path: "/account/apiAccess",
			// 			name: "apiAccess",
			// 			component: "./Account/apiAccess/Index",
			// 			authority: ["apiAccess"],
			// 			hideInMenu: true,
			// 		},
			// 	],
			// },
			// {
			// 	path: "/settings",
			// 	name: "accountSettings",
			// 	component: "./Account/Settings/Info",
			// 	hideInMenu: false,
			// 	authority: ["myAccount"],
			// 	icon: "settings.png",
			// 	routes: [
			// 		{
			// 			path: "/settings",
			// 			redirect: "/settings/base",
			// 			hideInMenu: true,
			// 		},
			// 		{
			// 			path: "/settings/base",
			// 			component: "./Account/Settings/BaseView",
			// 		},
			// 		{
			// 			path: "/settings/binding",
			// 			component: "./Account/Settings/BindingView",
			// 			hideInMenu: true,
			// 		},
			// 		{
			// 			path: "/settings/notification",
			// 			component: "./Account/Settings/NotificationView",
			// 			hideInMenu: true,
			// 		},
			// 	],
			// },

			// {
			// 	path: "/operationLog",
			// 	name: "operationLog",
			// 	icon: "database",
			// 	component: "./OperationLog/operationLog",
			// 	authority: ["operationLog"],
			// 	hideInMenu: false,
			// },
			// {
			// 	path: "/notice",
			// 	name: "notice",
			// 	icon: "notice",
			// 	component: "./notice",
			// 	hideInMenu: true,
			// },

			// {
			// 	path: "/onlineSkillSet",
			// 	name: "onlineSkillSet",
			// 	icon: "onlineSkillSet.png",
			// 	component: "./Account/OnlineSkillSet/index",
			// 	hideInMenu: false,
			// 	authority: ["onlineSkillSet"],
			// 	icon: "robot",
			// },
			// {
			// 	path: "/singleSkillSet",
			// 	name: "singleSkillSet",
			// 	icon: "singleSkillSet.png",
			// 	component: "./Account/SingleSkillSet/index",
			// 	hideInMenu: false,
			// 	authority: ["singleSkillSet"],
			// 	icon: "robot",
			// },
			// {
			// 	path: "/staffManage",
			// 	name: "staffManage",
			// 	component: "./Account/staffManage/index",
			// 	authority: ["staffManage"],
			// 	icon: "staffManage.png",
			// },
			/*{
				path: '/dialog/specialIndex',
				name: 'dialog',
				icon: 'bulb',
				component: './Dialog/specialCase/index',
				hideInMenu: true
			},*/
			{
				path: "/exception/404",
				component: "404",
			},
			{
				path: "/exception/500",
				component: "500",
			},
			{
				path: "/exception/403",
				component: "403",
			},
			// 账号中心

			//



		],
	},
];
